package cn.escco.ocr.enums;

import lombok.Getter;

@Getter
public enum ErrorCode {

    SUCCESSFUL("1", "成功"),

    UNSUCCESSFUL("0", "失败"),

    REPEAT_MAKE_SUCCESSFUL("1", "脚本生成成功！"),

    REPEAT_MAKE_FAIL("0", "当前险种已生产发布，没有可生成数据！"),

    REPEAT_EMPTY("0", "未找到可推送数据！~"),

    RISK_UNDEFINED("0", "险种未定义！"),

    PUSH_DATA_NOT_EXIST("0", "当前险种，最新发布版本不存在待推送数据！"),

    PUSHED_SUCCESSFUL("1", "推送成功！~"),

    PUSHED_PROD("0", "已推送生产环境，请勿重复推送！~"),
    
    ACQUIRE_CONTROL_DISPLAY_INFO_ERR("0", "获取险种显示控制信息失败！"),
    
    DUTY_NOT_EXIST("0", "未查询到责任信息，请先生成责任信息！");


    private String code;

    private String msg;

    ErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
